public class SpringRepeat
extends Statement
SpringRepeat
is a custom JUnit Statement
which adds support
for Spring's @Repeat
annotation by repeating the test the specified number of times.evaluate()
Modifier and Type | Field and Description |
---|---|
protected static Log |
logger |
private Statement |
next |
private int |
repeat |
private java.lang.reflect.Method |
testMethod |
Constructor and Description |
---|
SpringRepeat(Statement next,
java.lang.reflect.Method testMethod,
int repeat)
Construct a new
SpringRepeat statement for the supplied
testMethod and repeat count. |
Modifier and Type | Method and Description |
---|---|
void |
evaluate()
Evaluate the next
statement in the execution chain
repeatedly, using the specified repeat count. |
protected static final Log logger
private final Statement next
private final java.lang.reflect.Method testMethod
private final int repeat
public SpringRepeat(Statement next, java.lang.reflect.Method testMethod, int repeat)
SpringRepeat
statement for the supplied
testMethod
and repeat
count.next
- the next Statement
in the execution chaintestMethod
- the current test methodrepeat
- the configured repeat count for the current test method